package com.imooc.order.form;

import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;


/**
 * 封装前端传递的参数并校验，用于创建订单
 * @author steve
 * @date 2020/5/9 15:33
 */
@Data
public class OrderForm {

    /** 买家名称 */
    @NotEmpty(message = "名称必填")
    private String name;

    /** 买家手机 */
    @NotEmpty(message = "手机必填")
    private String phone;

    /** 买家地址 */
    @NotEmpty(message = "地址必填")
    private String address;

    /** 买家微信openid */
    @NotEmpty(message = "微信openid必填")
    private String openid;

    /** 买家购物车 */
    @NotEmpty(message = "购物车不能为空")
    private String items;
}
